<?php

$content='  $nonce = @$data["request"]["nonce"];
        $timestamp = @$data["request"]["timestamp"];
        $msg_signature = $data["request"]["msg_signature"];
        $post1 = @$data[\'request_body\'];

        $component_appid = @$data["openweixin_config"]["component_appid"]; //appid
        $verify_token = @$data["openweixin_config"]["verify_token"]; //
        $aes_key = $data["openweixin_config"]["aes_key"]; //

        $pc = new \WXBizMsgCrypt($verify_token, $aes_key, $component_appid);
        $xml = \'\';
        $errCode = $pc->decryptMsg($msg_signature, $timestamp, $nonce, $post, $xml);
        ';
preg_match('/\$(post1)[^=]*(=>)?[^=]*(;|$)/', $content,$matchTest2);
print_r($matchTest2);

$testCode="<?php\n";
foreach($matchTest2[1] as $variable)
{
    preg_match('/\$('.$variable.')[^=]*;/', $content,$matchTest2);
    $testCode.="";
    if(count($matchTest2)>=2)
    {
        $index=array_search($matchTest2[1],$matchTest1[1]);
        $testCode.=$matchTest1[2][$index]."='';\n";
    }
}
print_r($testCode);